{if $tags|@count > 0}
<div class="page rightmenu">
	<div class="xtop"><div class="xb1"></div><div class="xb2"></div><div class="xb3"></div><div class="xb4"></div></div>
	<div class="core">
		<h5>Теги</h5>

		{foreach from=$tags item=tagline}
			<div>
			{foreach from=$tagline item=tag}
				{if $tag->count / 10 < 1}
					{assign var="freq" value=$tag->count / 10 + 1}
				{else}
					{if ($tag->count / 10) > 2}
						{assign var="freq" value="2"}
					{else}
						{assign var="freq" value=$tag->count/10}
					{/if}
				{/if}
				<div style="padding-right: 15px; float: left; font-size: {$freq}em;">{$tag->name}</div>
			{/foreach}
			<div class="spacer"></div>
			</div>
		{/foreach}

		{*foreach from=$tags item=tag}
		<ul class="links">
			<li><a href="#">{$tag->name}</a></li>
		</ul>
		{/foreach*}
	</div>    
	<div class="xtop"><div class="xb4"></div><div class="xb3"></div><div class="xb2"></div><div class="xb1"></div></div>
</div>
{/if}